<!doctype html>
<html>
<head>
    <title>Inferno CSS transform example</title>
</head>
<body>
<div id="app1"></div>
<script>
	window.process = {
		env: {
			NODE_ENV: 'production'
		}
	};
</script>
<script src="../../packages/inferno/dist/inferno.js"></script>
<script>
	"use strict";
	var container = document.getElementById('app1');
	var render = Inferno.render;
	var createVNode = Inferno.createVNode;
    var createTextVNode = Inferno.createTextVNode;

	function loop() {
		// Mount
		render(createVNode(1, 'div', 'foo bar', createTextVNode('First'), 2, {
			style: {
				color: 'red',
				float: 'left'
			},
			'data-attribute': 'data-value',
			'custom-stuff': 'custom',
		}), container);

		// Change
    setTimeout(
    	function () {
				render(createVNode(1, 'div', 'bar', createTextVNode('Second'), 2, {
					style: {color: 'blue'},
					'data-attribute': 'data-value'
				}), 
				container
			)}, 
			1000
		);

		// Remove all
		setTimeout(function () {
			render(null, container);
		}, 2000);
  }

  loop();

  setInterval(loop, 3000);
</script>
</body>
</html>
